import request from '@/utils/request'

// 查询理财产品订单列表
export function listFinancialProductsOrder(query) {
  return request({
    url: '/admin/financialProductsOrder/list',
    method: 'get',
    params: query
  })
}

// 查询理财产品订单详细
export function getFinancialProductsOrder(id) {
  return request({
    url: '/admin/financialProductsOrder/' + id,
    method: 'get'
  })
}

// 新增理财产品订单
export function addFinancialProductsOrder(data) {
  return request({
    url: '/admin/financialProductsOrder',
    method: 'post',
    data: data
  })
}

// 修改理财产品订单
export function updateFinancialProductsOrder(data) {
  return request({
    url: '/admin/financialProductsOrder',
    method: 'put',
    data: data
  })
}

// 删除理财产品订单
export function delFinancialProductsOrder(id) {
  return request({
    url: '/admin/financialProductsOrder/' + id,
    method: 'delete'
  })
}
